<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Welcome Controller
 *
 * @package     VisualQ Local System
 * @author      CSU OJT Students '10 - '11
 * @copyright   Copyright (c) 2010 - 2011, Bitstop Network Services, Inc.
 * @version     0.1b January 01, 2011
 */

class Welcome extends Controller {

    function Welcome()
    {
        parent::Controller();

        $this->lang->load('local', 'English');
        $this->load->model('settings_model');
    }

    function index()
    {
        // Check if necessary data has been initialized
        if($this->settings_model->check_settings() &&
                $this->settings_model->check_services() &&
                $this->settings_model->check_accounts() &&
                $this->settings_model->check_accounts_services())
        {
            redirect(base_url() . 'login/');
        }

        $this->load->view('welcome_view');
    }

}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */